package com.xugou.dao;

import com.xugou.pojo.Client;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface ClientDao {

    //添加客户信息
    int addClientInfo(Client client);

    //删除客户
    int deleteClientById(@Param("clientId") int id);

    //修改客户信息
    int updateClient(Client client);

    //通过客户id查询客户信息
    Client queryClientById(@Param("clientId")int id);

    //查询所有的客户
    List<Client> getClientList();

    //通过客户姓名查找客户
    Client queryClientByName(@Param("clientName")String name);

}
